/**
 * 
 */
package org.braketester.entry;

import org.braketester.view.CreateRawDataFrame;
import org.braketester.view.MainFrame;
import org.braketester.view.OptionsFrame;

/**
 * @author LAP
 *
 */
public class FramesThread extends Thread {
	private MainFrame mainFrame;
	private OptionsFrame optionsFrame;
	private CreateRawDataFrame createRawDataFrame;
	
	private FramesThread() {
		super();
		mainFrame = new MainFrame();
		optionsFrame = new OptionsFrame();
	}
	
	private static class FrameThreadHolder {
		private final static FramesThread instance = new FramesThread();
	}
	
	public static FramesThread getInstance() {
		return FrameThreadHolder.instance;
	}

	/**
	 * @return the mainFrame
	 */
	public MainFrame getMainFrame() {
		return mainFrame;
	}

	/**
	 * @return the optionsFrame
	 */
	public OptionsFrame getOptionsFrame() {
		return optionsFrame;
	}
	
	public void showCreateRawDataFrame() {
		createRawDataFrame = new CreateRawDataFrame();
		createRawDataFrame.setVisible(true);
	}
	
}
